<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    let i = 11;
    while(i<10){
        console.log('执行while循环');
        i++;
    }
    let j = 11;
    do{
        console.log('执行do.....while循环');
        j++;
    }while(j<10)
    console.log('------------');
    //打印o~100之间的偶数:遇到55结束程序
    let num = 0;
    for (let i=1;i<=100; i++){
        if(i % 2 == 0){
            console.log(i);
        }else if(i==55){
            continue; //break结束  continue继续
        }
    }
    console.log('------------');
    //两层循环的数值（0——10）变化，两个值相等时打印内容“中奖号码”，当两个值都是7时结束循环
   
    for(let i=0;i<10;i++){
        for(let g=0;g<10;g++){
            if(i==g){
                console.log(i);
                console.log(g);
                console.log('中奖号码');
        }else if(i==7 && g==7){
             break;
        }
    }
}
</script>
</html>